#include "View.h"

View::View(AbstractControllerPtr & ptrController) :MyObject(), m_ptrController(AbstractControllerPtr(ptrController))
    {
    print()<<"View construction"<<std::endl;
    }

View::~View()
    {
    print()<<"View destruction"<<std::endl;
    }

void View::update(double before, double after)
    {
    print()<<"before = "<<before<<" | after = "<<after<<std::endl;
    }

void View::c()
    {
    m_ptrController->reset();
    }

void View::click(double data)
    {
    m_ptrController->setData(data);
    }
